import request from "@/utils/request";

// 查询窗帘复杂加工列表
export function listMachining(query) {
  return request({
    url: "/md/machining/list",
    method: "get",
    params: query,
  });
}

// 查询窗帘复杂加工详细
export function getMachining(mdComplexMachiningId) {
  return request({
    url: "/md/machining/" + mdComplexMachiningId,
    method: "get",
  });
}

// 新增窗帘复杂加工
export function addMachining(data) {
  return request({
    url: "/md/machining",
    method: "post",
    data: data,
  });
}

// 修改窗帘复杂加工
export function updateMachining(data) {
  return request({
    url: "/md/machining",
    method: "put",
    data: data,
  });
}

// 删除窗帘复杂加工
export function delMachining(mdComplexMachiningId) {
  return request({
    url: "/md/machining/" + mdComplexMachiningId,
    method: "delete",
  });
}
